package com.kabigon.tiny.componet;

import com.kabigon.tiny.pojo.Person;
import org.springframework.beans.factory.FactoryBean;

/**
 * Person factory bean
 *
 * @author kabigon
 * @version 2022/9/18/23:42
 */
public class PersonFactoryBean implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
